home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Trading on the Edge
/
Trading On The Edge - CD-ROM Toolkit (Wayzata Technology)(2031)(1994).bin
/
pc
/
mac_file
/
vendor_d
/
neuralwa
/
nw2v50
/
somwghts.igb
< prev
next >
Wrap
Text File
|
1993-08-23
|
2KB
|
88 lines
inst4.1 !April, 1993
!****************************************************************
!* *
!* SOM Kohonen weights *
!* *
!****************************************************************
!
@LLsl !Load super-layer
=n0 Lpes !Number of layers
=LayN 0
! Look for first layer that learns
:Koh1
=n1 LayN !remember layer
+LayN 1 !next layer
?LayN n0
>bgt KohEnd !past output layer
@LLly !load the layer
?Llrn 0 !is this a preprocessing layer?
>bne Koh2 !we are past the preprocessing layers
>br Koh1 !next layer
:Koh2
=n4 Lpes !remember #PEs in Kohonen layer
=n5 Lpes !
/n5 LDnr !# cols
=n6 LDnr !# rows
=SPEl LayN !set up as selected (dest) layer
!Load previous layer
=LayN n1
@LLly
=n3 Lpes !remember #PEs
=NPEl LayN !set up as near (source) layer
! Add probe
=PNam "SOMWts" !probe name
@PbAS !Add Probe
@PbDC !Delete all components
@PALC !Layer Connections
! Now build the instrument
@ILdD !load default instrument
=ITit "SOM Weights" !Instrument title
=IGTy "Hinton" !Graph Type
=IGVr "Weight" !Variable
=ITTy "RMS" !RMS Transformation Type
=ITMd 0 !No transformation
=IEpc 0 !No epoch
=Ignx n3
*Ignx n5
=Inpl n4
*Inpl n3
=Iwdt 7
*Iwdt n3
?Iwdt 140
>bgt Koh4
=Iwdt 140
:Koh4
=Ihgt 7
*Ihgt n6
?Ihgt 100
>bgt Koh5
=Ihgt 100
:Koh5
=IGC1 IGC0 !show negative as unfilled
=Ivmn -1.0
=Ivmx 1.0
=ILnA 1 !Active in Learn
=IRcA 0 !Inactive in recall
=ILDv 100 !Every 100 iterations
=ILRm 0
=IRDv 0
=IRRm 0
=IPrb PNam !Point to probe
=ICAc 0 !Convergence criterion inactive
=ICTh 0.0 !Convergence Threshold
!Let NeuralWorks figure out where to put instrument
=x 0
=y 0
@IAdd !Now create instrument
:KohEnd